<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="../portal_common/taglibs.jsp" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <title>我的购物车</title>

    <link rel="stylesheet" type="text/css" href="${ctx}/css/webbase.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/css/pages-cart.css"/>
    <script type="text/javascript" src="${ctx}/plugins/angularjs/angular.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/base.js"></script>
    <script type="text/javascript" src="${ctx}/js/service/cartService.js"></script>
    <script type="text/javascript" src="${ctx}/js/controller/cartController.js"></script>
</head>

<body ng-app="pinyougou" ng-controller="cartController" ng-init="findCartList()">
<!--head-->
<%@include file="../portal_common/top.jsp" %>
<div class="cart py-container">
    <!--logoArea-->
    <div class="logoArea">
        <div class="fl logo" style="background-position: 10px 10px;"></div>
        <div class="fr search">
            <form class="sui-form form-inline" action="${ctx}/itemSearch" target="_blank">
                <div class="input-append">
                    <input type="text" name="keywords" class="input-error input-xxlarge" placeholder="瓷器商城自营"/>
                    <button class="sui-btn btn-xlarge btn-danger" type="submit">搜索</button>
                </div>
            </form>
        </div>
    </div>
    <!--All goods-->
    <div class="allgoods">
        <h4>全部商品<span></span></h4>
        <div class="cart-main">
            <div class="yui3-g cart-th">
                <div class="yui3-u-1-4"><%--<input type="checkbox" name="" id="" value=""/>--%> 全部</div>
                <div class="yui3-u-1-4">商品</div>
                <div class="yui3-u-1-8">单价（元）</div>
                <div class="yui3-u-1-8">数量</div>
                <div class="yui3-u-1-8">小计（元）</div>
                <div class="yui3-u-1-8">操作</div>
            </div>
            <div class="cart-item-list" ng-repeat="cart in cartList">
                <div class="cart-shop">
                    <%--<input type="checkbox" name="" id="" value=""/>--%>
                    <span class="shopname self">{{cart.sellerName}}  【商家ID:{{cart.sellerId}}】</span>
                </div>
                <div class="cart-body">
                    <div class="cart-list" ng-repeat="item in cart.orderItemList">
                        <ul class="goods-list yui3-g">
                            <li class="yui3-u-1-24">
                                <%--<input type="checkbox" name="" id="" value=""/>--%>
                            </li>
                            <li class="yui3-u-11-24">
                                <div class="good-item">
                                    <div class="item-img"><img src="{{item.picPath}}"/></div>
                                    <div class="item-msg">{{item.title}}</div>
                                </div>
                            </li>

                            <li class="yui3-u-1-8"><span class="price">{{item.price}}</span></li>
                            <li class="yui3-u-1-8">
                                <a href="javascript:void(0)" class="increment mins"
                                   ng-click="addGoodsToCartList(item.itemId,-1)">-</a>
                                <input autocomplete="off" type="text" value="1" minnum="1" class="itxt"
                                       ng-model="item.num"/>
                                <a href="javascript:void(0)" class="increment plus"
                                   ng-click="addGoodsToCartList(item.itemId,1)">+</a>
                            </li>
                            <li class="yui3-u-1-8"><span class="sum">{{item.totalFee}}</span></li>
                            <li class="yui3-u-1-8">
                                <a href="#none" ng-click="deleteObjectd(item.itemId,item.num)">删除</a><br/>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>


        </div>
        <div class="cart-tool">
            <%--<div class="select-all">
                <input type="checkbox" name="" id="" value=""/>
                <span>全选</span>
            </div>--%>
            <%--<div class="option">
                <a href="#none">删除选中的商品</a>
                <a href="#none">移到我的关注</a>
                <a href="#none">清除下柜商品</a>
            </div>--%>
            <div class="toolbar">
                <div class="chosed">已选择<span>{{totalValue.totalNum}}</span>件商品</div>
                <div class="sumprice">
                    <span><em>总价（不含运费） ：</em><i class="summoney">¥{{totalValue.totalMoney.toFixed(2)}}</i></span>
                    <span><em>已节省：</em><i>-¥20.00</i></span>
                </div>
                <div class="sumbtn">
                    <a class="sum-btn" href="javascript:void(0);" ng-click="checkPrice(totalValue.totalMoney)">结算</a>
                </div>
            </div>
        </div>
        <div class="clearfix"></div>
        <%--   <div class="deled">
               <span>已删除商品，您可以重新购买或加关注：</span>
               <div class="cart-list del">
                   <ul class="goods-list yui3-g">
                       <li class="yui3-u-1-2">
                           <div class="good-item">
                               <div class="item-msg">Apple Macbook Air 13.3英寸笔记本电脑 银色（Corei5）处理器/8GB内存</div>
                           </div>
                       </li>
                       <li class="yui3-u-1-6"><span class="price">8848.00</span></li>
                       <li class="yui3-u-1-6">
                           <span class="number">1</span>
                       </li>
                       <li class="yui3-u-1-8">
                           <a href="#none">重新购买</a>
                           <a href="#none">移到我的关注</a>
                       </li>
                   </ul>
               </div>
           </div>--%>
        <div class="liked">
            <ul class="sui-nav nav-tabs">
                <li class="active">
                    <a href="#index" data-toggle="tab">猜你喜欢</a>
                </li>
                <%-- <li>
                     <a href="#profile" data-toggle="tab">特惠换购</a>
                 </li>--%>
            </ul>
            <div class="clearfix"></div>
            <div class="tab-content">
                <div id="index" class="tab-pane active">
                    <div id="myCarousel" data-ride="carousel" data-interval="4000" class="sui-carousel slide">
                        <div class="carousel-inner">
                            <div class="active item">
                                <ul>
                                    <li>
                                        <img src="${ctx}/image/1234568.jpg"/>
                                        <div class="intro">
                                            <i>景德镇紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$219.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123459.jpg"/>
                                        <div class="intro">
                                            <i>景德镇紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$2290.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123457.jpg"/>
                                        <div class="intro">
                                            <i>景德镇紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$2948.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123456.jpg"/>
                                        <div class="intro">
                                            <i>景德镇紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$2779.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                            <div class="item">
                                <ul>
                                    <li>
                                        <img src="${ctx}/image/1234568.jpg"/>
                                        <div class="intro">
                                            <i>紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$219.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123459.jpg"/>
                                        <div class="intro">
                                            <i>紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$290.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123457.jpg"/>
                                        <div class="intro">
                                            <i>紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$29.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                    <li>
                                        <img src="${ctx}/image/123456.jpg"/>
                                        <div class="intro">
                                            <i>绝版紫砂壶</i>
                                        </div>
                                        <div class="money">
                                            <span>$29.00</span>
                                        </div>
                                        <div class="incar">
                                            <a href="#" class="sui-btn btn-bordered btn-xlarge btn-default"><i
                                                    class="car"></i><span class="cartxt">加入购物车</span></a>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <a href="#myCarousel" data-slide="prev" class="carousel-control left">‹</a>
                        <a href="#myCarousel" data-slide="next" class="carousel-control right">›</a>
                    </div>
                </div>
                <div id="profile" class="tab-pane">
                    <p>建设中，暂无特惠选购</p>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 底部栏位 -->
<!--页面底部-->
<%@include file="../portal_common/foot.jsp" %>
<!--页面底部END-->

<script type="text/javascript" src="${ctx}/js/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/js/plugins/jquery.easing/jquery.easing.min.js"></script>
<script type="text/javascript" src="${ctx}/js/plugins/sui/sui.min.js"></script>
<script type="text/javascript" src="${ctx}/js/widget/nav.js"></script>
</body>

</html>